﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace GisWeb
{
    public partial class investAnaly : FloatableWindow
    {
        public int showFlag=0;
        List<String> industry = new List<String>();
        List<String> agri = new List<string>();
        public event EventHandler checkResult;
        public event EventHandler stopAna;
        public investAnaly()
        {
            InitializeComponent();
            industry.Add("重工业");
            industry.Add("金融业");
            industry.Add("建筑业");
            industry.Add("运输业");
            industry.Add("零售业");
            industry.Add("服务业");
            industry.Add("旅游业");
            agri.Add("种植业");
            agri.Add("林业");
            agri.Add("渔业");
            agri.Add("矿物业");
            career.ItemsSource = industry;
           
        }


        private void indu_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            int chose = indu.SelectedIndex;

            switch (chose) {
                case 0: career.ItemsSource = null;
                    career.ItemsSource = industry;
                    career.SelectedIndex = 0;
                    break;
                    
                case 1: career.ItemsSource = null;
                    career.ItemsSource = agri;
                     career.SelectedIndex = 0;break;

            
            
            }
        }

        private void LayoutRoot_Loaded(object sender, RoutedEventArgs e)
        {
            indu.SelectionChanged += indu_SelectionChanged;
           
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            checkResult(this, e);
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            stopAna(this, e);
        }
        
     
    }
}

